<%@page import="实体类.Teacher"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="static/bootstrap-3.3.7-dist/css/bootstrap.css"/>
</head>
<body>
	<%Teacher teacher = (Teacher)request.getAttribute("teacher"); %>
	<form action="<%=request.getContextPath() %>/teacher?method=update" method="post">
		<table class="table table-striped table-bordered table-hover table-condensed">
			<tr><th>ID</th><td><input type="text" name="id" value="<%= teacher.getId()%>"></td></tr>
			<tr><th>用户名</th><td><input type="text" name="name" value="<%= teacher.getName()%>"></td></tr>
			<tr><th>年龄</th><td><input type="text" name="age" value="<%= teacher.getAge()%>"></td></tr>
			<tr><th>薪酬</th><td><input type="text" name="salary" value="<%= teacher.getSalary()%>"></td></tr>
		</table>
		<input type="submit" value="修改">
	</form>
</body>
</html>